package com.cgt.xiaotao.user.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(description = "省市区表")
@TableName("city")
public class City {

    @ApiModelProperty(value = "主键ID")
    @TableId(type = IdType.NONE)
    @TableField("id")
    private Integer id;

    @ApiModelProperty(value = "省市区名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "上级ID")
    @TableField("parent_id")
    private Integer parentId;

    @ApiModelProperty(value = "简称")
    @TableField("short_name")
    private String shortName;

    @ApiModelProperty(value = "级别:0-中国;1-省份;2-市;3-区县")
    @TableField("level_type")
    private Integer levelType;

    @ApiModelProperty(value = "城市代码")
    @TableField("city_code")
    private String cityCode;

    @ApiModelProperty(value = "邮编")
    @TableField("zip_code")
    private String zipCode;

    @ApiModelProperty(value = "经度")
    @TableField("lng")
    private String lng;

    @ApiModelProperty(value = "纬度")
    @TableField("lat")
    private String lat;

    @ApiModelProperty(value = "拼音")
    @TableField("pinyin")
    private String pinyin;

    @ApiModelProperty(value = "状态")
    @TableField("status")
    private String status;
}